package com.hdl.mapper;

import com.hdl.pojo.Order;
import com.hdl.pojo.Role;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * 类名 IRoleMapper
 * 描述 TODO
 *
 * @author hedonglin
 * @version 1.0
 * @date 2020/4/23 10:07
 */
public interface IRoleMapper {

    @Select("select * from sys_role where id in (select roleid from sys_user_role where userid = #{#userId})")
    List<Role> findRoleByUserId(Integer userId);
}
